
var gallery = mui('.mui-slider');
gallery[0].style.height = document.body.clientWidth * 2 / 3 + 'px';
gallery.slider({
	interval: 5000 //自动轮播周期，若为0则不自动播放，默认为0；
});

//跳转到通知页
mui('#notice')[0].addEventListener('tap',function(){
	mui.openWindow({
		url:'./notice.html',
		id:'notices'
	})
})
//跳转到考表页
mui('#examsTable')[0].addEventListener('tap',function(){
	mui.openWindow({
		url:'./exams.html',
		id:'exams'
	})
})
//跳转到成绩页
mui('#grades')[0].addEventListener('tap',function(){
	mui.openWindow({
		url:'./grade.html',
		id:'grades'
	})
})
//home主页的最新消息，消息跳转
mui(".newNotice").on('tap','.mui-card',function(){
	mui.openWindow({
		url:'./noticeInfo.html',
		id:'noticeInfo',
		extras:{
			title:"详情",
			person:"发送人",
			time:"2018-02-02",
			info:"neirong"
		}
	})
})
